package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 拜访记录
 * </p>
 *
 * @author yinjc123
 * @since 2018-04-14
 */
@TableName("crm_visit_pic")
@Data
public class VisitPic extends Model<VisitPic> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    @TableField("visit_id")
    private Integer visitId;

    /**
     * 地址
     */
    private String url;

    public VisitPic() {
    }

    public VisitPic(Integer visitId, String url) {
        this.visitId = visitId;
        this.url = url;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
